// 页面路由注册
import viewRouter from "@/views/index.js";
// console.log(viewRouter, "viewRouter");
// 路由列表
export default [
	{
		path: "/",
		name: "index",
		component: () => import(`@/pages/layout/index.vue`),
		children: [
			{
				path: "/redirect/:path(.*)",
				component: () => import("@/pages/redirect/index.vue"),
				meta: {
					keepAlive: false
				}
			},
			{
				path: "/",
				meta: {
					label: "首页"
				},
				name: "Home",
				component: () => import("@/views/home/index.vue")
			},
			{
				path: "/home/demo",
				meta: {
					label: "demo"
				},
				name: "demo",
				component: () => import("@/views/home/demo.vue")
			},
			...viewRouter
		]
	},
	{
		path: "/mobilehome",
		redirect: "/mobilehome/index", // 重定向到 index 页面
		meta: {
			label: "移动端首页"
		}
	},
	{
		path: "/mobilehome/index",
		component: () => import("@/views/mobile/home/index.vue"),
		name: "mobileHomeIndex",
		meta: {
			label: "移动端首页"
		}
	},
	{
		path: "/mobilehome/customer",
		component: () => import("@/views/mobile/custom/index.vue"),
		name: "mobileCustom",
		meta: {
			label: "客户列表"
		}
	},
	{
		path: "/mobilehome/reservationBoard",
		component: () => import("@/views/mobile/reservationBoard/index.vue"),
		name: "reservationBoard",
		meta: {
			label: "预约看板"
		}
	},
	{
		path: "/mobilehome/storeReportForm",
		component: () => import("@/views/mobile/storeReportForm/index.vue"),
		name: "storeReportForm",
		meta: {
			label: "门店报表"
		}
	},
	{
		path: "/mobilehome/preSaleReport",
		component: () => import("@/views/mobile/preSaleReport/index.vue"),
		name: "preSaleReport",
		meta: {
			label: "售前报表"
		}
	},
	{
		path: "/mobilehome/appoint",
		component: () => import("@/views/mobile/appoint/index.vue"),
		name: "mobileAppoint",
		meta: {
			label: "预约"
		}
	},
	{
		path: "/mobilehome/customerServiceTeam",
		component: () => import("@/views/mobile/customerServiceTeam/index.vue"),
		name: "customerServiceTeam",
		meta: {
			label: "客服组"
		}
	},
	{
		path: "/mobilehome/customerServiceTeamDetail",
		component: () => import("@/views/mobile/customerServiceTeam/detail.vue"),
		name: "customerServiceTeamDetail",
		meta: {
			label: "客服详情列表"
		}
	}
];
